<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-heading"><h4>修改门店</h4></div>
            <div class="panel-body">
                <form action="" class="form-horizontal row-border"  data-validate="parsley" id="validate-form">
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="shop_name">门店名称:</label>
                        <div class="col-sm-6">
                            <input type="text" name="shop_name" id="shop_name" required="required" placeholder="门店名称" value="{$model.shop_name}" class="form-control"  {eq name="model.api_version" value="qingniao"}readonly{/eq}>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" for="parent_id">上级门店:</label>
                        <div class="col-sm-6">
                            <input type="text" name="parent_id" id="parent_id" placeholder="上级门店" value="{$parents[$model['parent_id']]}" class="form-control" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                    		<label class="col-sm-3 control-label" for="api_version">api版本:</label>
                    		<div class="col-sm-6">
                                <input type="text" name="api_version" id="api_version" placeholder="api版本" value="{$model.api_version}" class="form-control" readonly>
                    		</div>
                           {eq name="model.api_version" value="qingniao"}
                                <div class="col-sm-2">
                                    <a class="btn-primary btn" id="sync_data">同步</a>
                                </div>
                            {/eq}
                    </div>
                    <div class="form-group">
                    	<label class="col-sm-3 control-label">接口配置代码</label>
                    	<div class="col-sm-6">
                    		<textarea class="form-control" style="min-height: 200px;" id="template" name="extra_config">{$model.extra_config}</textarea>
                    	</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" >开始时间:</label>
                        <div class="col-sm-8">
                            <!--http://bootstrap-datepicker.readthedocs.io/en/latest/options.html-->
                            <input type="text"  id="start_time" name="start_time"   class="form-control datepicker" value="{$model.start_time|date="Y-m-d",###}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label" >到期日期:</label>
                        <div class="col-sm-8">
                            <!--http://bootstrap-datepicker.readthedocs.io/en/latest/options.html-->
                            <input type="text"  id="expire_time" name="expire_time"  class="form-control datepicker" value="{$model.expire_time|date="Y-m-d",###}">
                        </div>
                    </div>
                    <input type="hidden" value="{$model.id}" name="id" id="shop_id"/>
                </form>
            </div>
            <div class="panel-footer">
                <div class="row">
                    <div class="col-sm-6 col-sm-offset-3">
                        <div class="btn-toolbar">
                            <button class="btn-primary btn" id="form-submit">提交</button>
                            <button class="btn-default btn" data-dismiss="modal">关闭</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.OPERATION_VIEW_JS}shop/edit.js'></script>